import { IRoute } from "@/typings";
import { SET_AUTH, SET_ROUTE_TREE } from "./actionType";
import { IState } from "./state";


export default{
  [SET_ROUTE_TREE] (state:IState,routeTree:IRoute[]){
    state.routeTree=routeTree
  },
  [SET_AUTH](state:IState,auth:boolean){
    state.hasAuth=auth
  }
}